import request from 'umi-request';
export async function fakeAccountLogin(params) {
  return request('/amaidan-sys-user/login/account', {
    method: 'POST',
    data: params,
  });
}
export async function getFakeCaptcha(mobile) {
  return request(`/amaidan-sys-user/login/captcha?mobile=${mobile}`);
}

// 真 登录接口
export async function login(params) {
  return request('/amaidan-sys-user/merchants/user/login', {
    method: 'POST',
    data: params,
  });
}
// 验证密码
export async function changePassword(params) {
  return request('/amaidan-sys-user/merchants/user/validateUserPassword', {
    method: 'POST',
    data: params,
  });
}

export async function loginNew(params) {
  return request('/amaidan-sys-user/merchants/user/login', {
    method: 'POST',
    data: params,
  });
}
